﻿@{
    Layout = null;
    LeEdu.MODEL.UserInfo user = ViewBag.user;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>乐知教育</title>
</head>
<body>
    <div>
        <!-- /.modal -->
        <div class="modal-header">

            <button class="close" aria-hidden="true" type="button" data-dismiss="modal">×</button>
            <h4 class="modal-title">
                编辑用户信息
            </h4>
        </div>
        <div class="modal-body">
            <form class="form-horizontal" id="user-edit-form" action="/Admin/EditUser" method="post" novalidate="novalidate" data-widget-cid="widget-0">
                <div class="row form-group">
                    <div class="col-md-2 control-label">
                        <label for="truename">姓名</label>
                    </div>
                    <input type="hidden" name="UserInfoId" value="@user.UserInfoId" />
                    <div class="col-md-7 controls">
                       @user.Uname
                        <input type="hidden" value="@user.Uname" name="Uname"/>
                        <div class="help-block" style="display: none;"></div>
                    </div>
                </div>
                <div class="row form-group">
                    <div class="col-md-2 control-label">
                        <label for="gender">性别</label>
                    </div>
                    <div class="col-md-7 controls radios">
                        <div id="gender">
                          @if (user.Sex == 0)
                          {
                            <input name="Sex" id="gender_0" type="radio"  value="1" />
                            <label for="gender_0">男</label>
                            <input name="Sex" id="gender_1" type="radio" checked="checked" value="0" />
                            <label for="gender_1">女</label>
                          }
                          else
                          {
                            <input name="Sex" id="gender_0" type="radio" checked="checked" value="1" />
                            <label for="gender_0">男</label>
                            <input name="Sex" id="gender_1" type="radio" value="0" />
                            <label for="gender_1">女</label>
                          }
                            <input type="hidden" name="Upwd" value="@user.Upwd" />
                            <input type="hidden" name="RoleId" value="@user.RoleId" />
                            <input type="hidden" name="Tisornot" value="@user.Tisornot"/>
                            <input type="hidden" name="Email" value="@user.Email" />
                            <input type="hidden" name="Avatar" value="@user.Avatar" />
                            <input type="hidden" name="UTime" value="@user.UTime" />
                        </div>
                    </div>
                </div>



                <div class="row form-group">


                    <div class="col-md-2 control-label">

                        <label for="idcard">身份证号</label>

                    </div>


                    <div class="col-md-7 controls">

                        <input name="IDCard" class="form-control" id="idcard" type="text" data-widget-cid="widget-6" data-explain="" value="@user.IDCard" />

                        <div class="help-block" style="display: none;"></div>
                    </div>


                </div>



                <div class="row form-group">


                    <div class="col-md-2 control-label">

                        <label for="mobile">手机号码</label>

                    </div>


                    <div class="col-md-7 controls">

                        <input name="PhoneNum" class="form-control" id="mobile" type="text" data-widget-cid="widget-5" data-explain="" value="@user.PhoneNum" />

                        <div class="help-block" style="display: none;"></div>
                    </div>


                </div>



                <div class="row form-group">


                    <div class="col-md-2 control-label">

                        <label for="company">公司</label>

                    </div>


                    <div class="col-md-7 controls">

                        <input name="Company" class="form-control" id="company" type="text" value="@user.Company" />

                    </div>


                </div>



                <div class="row form-group">


                    <div class="col-md-2 control-label">

                        <label for="job">职业</label>

                    </div>


                    <div class="col-md-7 controls">

                        <input name="Job" class="form-control" id="job" type="text" value="@user.Job" />

                    </div>


                </div>



                <p></p>


                <div class="row form-group">


                    <div class="col-md-2 control-label">

                        <label for="title">头衔</label>

                    </div>


                    <div class="col-md-7 controls">

                        <input name="Post" class="form-control" id="title" type="text" value="@user.Post" />

                    </div>


                </div>


                <p></p>


                <div class="row form-group">


                    <div class="col-md-2 control-label">

                        <label for="signature">个人签名</label>

                    </div>


                    <div class="col-md-7 controls">

                        <input name="Idiograph" class="form-control" id="signature" type="text" value="@user.Idiograph" />

                    </div>


                </div>


                <p></p>


                <div class="row form-group">


                    <div class="col-md-2 control-label">

                        <label for="about">自我介绍</label>

                    </div>


                    <div class="col-md-7 controls">

                        <textarea name="Self" style="height:50px;">@user.Self</textarea>
                    </div>


                </div>


                <p></p>


                <div class="row form-group">


                    <div class="col-md-2 control-label">

                        <label for="site">个人主页</label>

                    </div>


                    <div class="col-md-7 controls">

                        <input name="PersonalHome" class="form-control" id="site" type="text" data-widget-cid="widget-4" data-explain="" value="@user.PersonalHome" />

                        <div class="help-block" style="display: none;"></div>
                    </div>


                </div>


                <p></p>


                <div class="row form-group">


                    <div class="col-md-2 control-label">

                        <label for="weibo">微博</label>

                    </div>


                    <div class="col-md-7 controls">

                        <input name="Microblog" class="form-control" id="weibo" type="text" data-widget-cid="widget-3" data-explain="" value="@user.Microblog" />

                        <div class="help-block" style="display: none;"></div>
                    </div>


                </div>


                <p></p>


                <div class="row form-group">


                    <div class="col-md-2 control-label">

                        <label for="qq">QQ</label>

                    </div>


                    <div class="col-md-7 controls">

                        <input name="QQ" class="form-control" id="qq" type="text" data-widget-cid="widget-2" data-explain="" value="@user.QQ" />

                        <div class="help-block" style="display: none;"></div>
                    </div>


                </div>


                <p></p>


                <div class="row form-group">


                    <div class="col-md-2 control-label">

                        <label for="weixin">微信</label>

                    </div>


                    <div class="col-md-7 controls">

                        <input name="WeChat" class="form-control" id="weixin" type="text" value="@user.WeChat" />

                    </div>

                    <div class="modal-footer">
                        <button class="btn btn-primary pull-right" id="edit-user-btn" type="submit" data-toggle="form-submit" data-target="#user-edit-form" data-submiting-text="正在提交">保存</button>
                        <button class="btn btn-link pull-right" type="button" data-dismiss="modal">取消</button>
                    </div>
                </div>
            </form>

        </div>


       

    </div>
</body>
</html>
